package bg.cookbook
{
	public class Util
	{
		public function Util()
		{
		}
		
		public static function createUrl(server:String, photoId:String, secret:String,farmId:String):String
		{
			//				http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}.jpg
			//				or
			//				http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}_[mstzb].jpg
			//				or
			//				http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{o-secret}_o.(jpg|gif|png)
			var url:String = "http://farm"+farmId+".static.flickr.com/"+server+"/"+photoId+"_"+secret+"_b.jpg";
			trace("LIST",url);
			return url;
		}
		public static function createUrlTumb(server:String, photoId:String, secret:String):String
		{
			var url:String = "http://farm4.static.flickr.com/"+server+"/"+photoId+"_"+secret+"_t.jpg";
			return url;
		}
	}
}